package com.mike.spring.Basic;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class BasicE implements InitializingBean {
    @PostConstruct
    public void construct(){
        System.out.println("postConstruct...");
    }

    @PreDestroy
    public void destroy(){
        System.out.println("preDestroy...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("InitializingBean...");
    }
}
